"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.okMsg = exports.timeoutMsg = exports.errorMsg = void 0;
function errorMsg(type, message, data = {}) {
    return {
        ...data,
        status: 'error',
        resolve: `[response]:${type}`,
        message
    };
}
exports.errorMsg = errorMsg;
function timeoutMsg(type, message, data = {}) {
    return {
        ...data,
        status: 'timeout',
        resolve: `[response]:${type}`,
        message,
    };
}
exports.timeoutMsg = timeoutMsg;
function okMsg(type, data = {}) {
    return {
        ...data,
        status: 'ok',
        resolve: `[response]:${type}`,
    };
}
exports.okMsg = okMsg;
